Syncthing文件同步方案完全攻略(亲测有效) |
您所在的位置:网站首页 › syncthing ios客户端 › Syncthing文件同步方案完全攻略(亲测有效) |
方法二: 按照“正统”的做法,将Syncthing设为一个服务来自动运行: 开机启动脚本在这个位置: /安装包解压路径/syncthing-linux-amd64-v1.8.0/etc/linux-systemd/system 将这个文件拷贝到系统服务里(PS: 本例是在 /root/syncthing下解压的安装包): cp /root/syncthing/syncthing-linux-amd64-v1.8.0/etc/linux-systemd/system/[email protected] /usr/lib/systemd/system/[email protected] 编辑文档:nano /usr/lib/systemd/system/[email protected] 将: ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 改为: ExecStart=/usr/local/bin/syncthing -no-browser -no-restart -logflags=0存盘退出。 让设置生效: systemctl daemon-reload systemctl restart syncthing@root (启动服务) systemctl enable syncthing@root (设为开机启动) 至此服务器端Sything安装完毕。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |